import tarfile

with tarfile.open(r'C:\Users\73421\Downloads\Telegram Desktop.tar.gz', 'r') as tar:
    filenames = tar.getnames()
    for filename in filenames:
        print(filename)
    print(dir(tar))
    print(tar.__doc__)